<?php
/**
 * 用户登录
 * @author gary
 **/
class Services_User extends Fend
{

    public static function factory()
    {
        return new self();
    }


    public function checkLogin()
    {
        $userinfo = array();
        if(empty($_COOKIE['ht'])){
            return false;
        }else{
            $redis      = Fend_Cache::factory(1);
            $authorkey  = $_COOKIE['ht'];
            $userinfo   = $redis->get('user_'.$authorkey);
        }
        $this->reg  = $userinfo;
        return $userinfo;
    }

}